package pl.edu.pw.perg.compinfodb.entities;

public class ConnectorName {

	private String name;
	private int connectorIndex;
	private ElementType type;
	private boolean io;
	private Long id;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getConnectorIndex() {
		return connectorIndex;
	}
	public void setConnectorIndex(int connectorIndex) {
		this.connectorIndex = connectorIndex;
	}
	public ElementType getType() {
		return type;
	}
	public void setType(ElementType type) {
		this.type = type;
	}
	public boolean isIo() {
		return io;
	}
	public void setIo(boolean io) {
		this.io = io;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Override
	public String toString() {
		
		return name + ";" + connectorIndex + ";" + (type != null? type.getTypeName() : "null") + ";" + (io? "input" : "output");
	}
}
